package com.wangzeqi.changliaoba.login;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.wangzeqi.changliaoba.R;
import com.wangzeqi.changliaoba.base.BaseActivity;

/**
 * Created by dllo on 16/2/29.
 */
public class SplashActivity extends BaseActivity {
    private final int SPLASH_DISPLAY_LENGHT = 1500;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        new Handler().postDelayed(new Runnable() {//延迟发送runnable对象，封装成message
            @Override
            public void run() {
                Intent mainIntent = new Intent(SplashActivity.this, EnterActivity.class);
                SplashActivity.this.startActivity(mainIntent);
                SplashActivity.this.finish();
            }

        }, SPLASH_DISPLAY_LENGHT);
    }
}
